home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Programming / proof.lib / usr / Install-proof.library next >
Text File  |  2001-01-03  |  7KB  |  224 lines

  1. ; Install proof.library
  2. ; $VER: Install-proof.library V1.1 (3.1.2001)
  3. ; © 2000 Paul Huxham
  4.  
  5. (set #catalog 0) ; english language is default
  6.  
  7. ; Find the current language
  8. (set #i 0)
  9. (while (set #thisfile (select #i
  10.         "english" "italiano" "deutsch" "español" "czech" "català" "dansk" "français"
  11.         "hrvatski" "nederlands" "norsk" "polski" "português"
  12.         "russian" "srpski" "suomi" "svenska" "ÃeÓtina"
  13.         ""))
  14.     (
  15.         (if (= @language #thisfile)
  16.             (
  17.                 (set #catalog #i)
  18.                 (set #catalogname #thisfile)
  19.             )
  20.         )
  21.         (set #i (+ #i 1))
  22.     )
  23. )
  24.  
  25. ; Query user for their language, using system as default
  26. (set #catalog
  27.     (askchoice
  28.         (prompt "Select your native language (language for installer)")
  29.         (help @askoptions-help)
  30.         (choices "English" "Italiano" "Deutsch" "Español" "Czech")
  31.         (default #catalog)
  32.     )
  33. )
  34.  
  35. ; Reset #catalogname as the user may have changed the language above
  36. (if (< #catalog 5)
  37.     (
  38.         (set #catalogname (select #catalog "english" "italiano" "deutsch" "español" "czech"))
  39.     )
  40. )
  41.  
  42. ; Some string defaults common for all languages
  43. (set #HOMEPAGE "http://mafeking.scouts.org.au/steeplesoftware")
  44. (set #BLANK "\n")
  45.  
  46.  
  47. ; ************************** English texts ******************************
  48. (set #INITIAL_MESSAGE
  49.   (cat "\nWelcome to the proof.library installer\n\n\n"
  50.     "You can obtain updates and other information\nabout proof.library from the homepage\n\n"
  51.     #HOMEPAGE)
  52. )
  53. (set #WRONG_INSTALLER_VERSION "\n\n\n\nYou need at least version 42.9 of Installer\nto install proof.library")
  54. (set #WRONG_CPU "\n\n\n\nYou need a 68020 CPU or better\nto use proof.library")
  55. (set #WRONG_OS_VERSION "\n\n\n\nYou need at least AmigaOS V2.0\nto use proof.library")
  56. (set #INSTALLING "\nInstalling")
  57. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  58. (set #UPDATES_AVAILABLE "\nYou can get the latest version\nof proof.library from the homepage")
  59. (set #YES "Yes")
  60. (set #NO "No")
  61.  
  62. ; ************************** Italiano texts *****************************
  63. (if (= #catalog 1)
  64. (
  65. (set #INITIAL_MESSAGE
  66.   (cat "\nBenvenuto nell'installazione di proof.library\n\n\n"
  67.      "Puoi ottenere gli aggiornamenti, la mailing list e altre informazioni\nsu proof.library alla homepage\n"
  68.      #HOMEPAGE)
  69. )
  70. (set #WRONG_INSTALLER_VERSION "\n\n\n\nNecessiti almeno della versione 42.9 dell'Installer\nper installare proof.library")
  71. (set #WRONG_CPU "\n\n\n\nNecessiti di una CPU 68020 o superiore\nper usare proof.library")
  72. (set #WRONG_OS_VERSION "\n\n\n\nNecessiti almeno di AmigaOS V2.0\nper usare proof.library")
  73. (set #INSTALLING "\nInstallazione")
  74. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  75. (set #UPDATES_AVAILABLE "\nAggiornamenti di proof.library e le librarie richieste\n\nsono disponibili sulla home page")
  76. (set #YES "Sì")
  77. (set #NO "No")
  78. )
  79. )
  80.  
  81. ; ************************** Deutsch texts ******************************
  82. (if (= #catalog 2)
  83. (
  84. (set #INITIAL_MESSAGE
  85.   (cat "\nWillkommen zur Installation von proof.library\n\n\n"
  86.     "Updates, und weitere Information\nüber proof.library gibt es auf der Homepage\n"
  87.     #HOMEPAGE)
  88. )
  89. (set #WRONG_INSTALLER_VERSION "\n\n\n\nSie benötigen mind. Version 42.9 des Installers\num proof.library zu installieren")
  90. (set #WRONG_CPU "\n\n\n\nSie benötigen einen 68020 oder höher\num proof.library ausführen zu können")
  91. (set #WRONG_OS_VERSION "\n\n\n\nSie benötigen mind. AmigaOS V2.0\num proof.library ausführen zu können")
  92. (set #INSTALLING "\nInstalliert")
  93. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  94. (set #UPDATES_AVAILABLE "\nUpdates für proof.library und den dazugehörigen libraries\n\ngibt es auf der Homepage")
  95. (set #YES "Ja")
  96. (set #NO "Nein")
  97. )
  98. )
  99.  
  100. ; ************************** Español texts ******************************
  101. (if (= #catalog 3)
  102. (
  103. (set #INITIAL_MESSAGE
  104.   (cat "\nBienvenido a la instalación de proof.library\n\n\n"
  105.     "Podrás obtener actualizaciones, acceder a listas de correo y tener más información\nsobre proof.library en la página web de Homepage\n"
  106.     #HOMEPAGE)
  107. )
  108. (set #WRONG_INSTALLER_VERSION "\n\n\n\nNecesitas al menos la versión 42.9 del Installer\npara instalar proof.library")
  109. (set #WRONG_CPU "\n\n\n\nNecesitas un 68020 o superior\npara utilizar proof.library")
  110. (set #WRONG_OS_VERSION "\n\n\n\nNecesitas al menos AmigaOS V2.0\npara utilizar proof.library")
  111. (set #INSTALLING "\nInstalando")
  112. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  113. (set #UPDATES_AVAILABLE "\nLas actualizaciones de proof.library y librerías necesarias\n\nestán disponibles en la página web de homepage")
  114. (set #YES "Sí")
  115. (set #NO "No")
  116. )
  117. )
  118.  
  119. ; ************************** Czech texts ******************************
  120. (if (= #catalog 4)
  121. (
  122. (set #INITIAL_MESSAGE
  123.   (cat "\nVítejte pêi instalaci programu proof.library!\n\n\n"
  124.     "Dalîí informace, kontakt na ostatní uùivatele a aktualizace\nmûùete zdarma získat staùením z domovské stránky\n"
  125.     #HOMEPAGE)
  126. )
  127. (set #WRONG_INSTALLER_VERSION "\n\n\n\nK instalaci programu proof.library\npotêebujete Installer V42.9 nebo vyîîí")
  128. (set #WRONG_CPU "\n\n\n\nKe spuîtëní programu proof.library\npotêebujete alespoñ CPU68020 nebo lepîí")
  129. (set #WRONG_OS_VERSION "\n\n\n\nProgram proof.library vyùaduje\nke spuîtëní AmigaOS V2.0")
  130. (set #INSTALLING "\nInstalace")
  131. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  132. (set #UPDATES_AVAILABLE "\n\nAktualizace programu proof.library a pêísluîných\n\nknihoven jsou dostupné z domovské stránky")
  133. (set #YES "Ano")
  134. (set #NO "Ne")
  135. )
  136. )
  137.  
  138.  
  139. ; ************************* Global procedures ***************************
  140. (procedure P_copylib lib destpath newlibname
  141.     (
  142.         (copylib
  143.             (prompt (cat (cat #INSTALLING " ") (fileonly newlibname)))
  144.             (help @copylib-help)
  145.             (newname newlibname)
  146.             (source lib)
  147.             (dest destpath)
  148.             (confirm)
  149.             (optional askuser)
  150.         )
  151.     )
  152. )
  153.  
  154.  
  155. ; *********************** proof.library install
  156.  
  157. (if (< @installer-version (+ (* 65536 42) 9))
  158.     (abort #WRONG_INSTALLER_VERSION)
  159. )
  160.  
  161. (if (< (database "cpu") 68020 )
  162.     (abort #WRONG_CPU)
  163. )
  164.  
  165. (set os_version (/ (getversion "exec.library" (resident)) 65536))
  166. (if (< os_version 37)
  167.     (abort #WRONG_OS_VERSION)
  168. )
  169.  
  170. ; All essential version numbers are correct, continue installation
  171. (message #INITIAL_MESSAGE)
  172.  
  173. (complete 0)
  174.  
  175.  
  176. ; *********************** Sort out what the user has where
  177.  
  178. ; Establish CPU type
  179.  
  180. (set #ourcpu (database "cpu"))
  181.  
  182. (if (= #ourcpu "68020") (set #ourcpu 0))
  183. (if (= #ourcpu "68030") (set #ourcpu 0))
  184. (if (= #ourcpu "68040") (set #ourcpu 1))
  185. (if (= #ourcpu "68060") (set #ourcpu 2))
  186.  
  187. (complete 0)
  188.  
  189. ; *********************** Install proof.library
  190.  
  191. (set #cpu_install
  192.     (askchoice
  193.         (help @askchoice-help)
  194.         (prompt #INSTALL_WHICH_VERSION)
  195.         (choices "68020" "68040" "68060")
  196.         (default #ourcpu)
  197.     )
  198. )
  199.  
  200. (set #entry (select #cpu_install "020" "040" "060" ""))
  201. (set #entry (cat "libs/proof.library_" #entry))
  202.  
  203. (set @default-dest "Libs:")
  204.  
  205. (if (= @user-level 2) ;If expert user, ask directory
  206.     (
  207.         (set @default-dest
  208.             (askdir
  209.                 (prompt #SELECT_INSTALL_DIRECTORY)
  210.                 (help @askdir-help)
  211.                 (default @default-dest)
  212.             )
  213.         )
  214.     )
  215. )
  216.  
  217. (P_copylib #entry @default-dest "proof.library")
  218.  
  219. (complete 100)
  220.  
  221. ; *********************** Finished installation
  222.  
  223. (message (cat #UPDATES_AVAILABLE #BLANK #BLANK #HOMEPAGE))
  224.